import request from '@/utils/request';
import { AxiosResponse } from 'axios';

/**
 * @登录
 * params
 *
 */
export function loginApi(data): Promise<any> {
  return request({
    url: '/api/v1/auth/login',
    method: 'post',
    params: data,
  }).then((res: AxiosResponse) => {
    return res;
  });
}

/**
 * @Mock接口测试
 * params
 *
 */
export function MockRestApi(): Promise<any> {
  return request({
    url: '/mock/api/getStatusList',
    method: 'get',
  }).then((res: AxiosResponse) => {
    return res;
  });
}
